function exit(){
	  layui.use( 'laydate', function(){
		  var layer = layui.layer;
		  layer.closeAll();
	  });
	 
}
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form
  ,laydate = layui.laydate
  ,layer = layui.layer
  ,layedit = layui.layedit;
  
  
 
   
  
//监听提交
  form.on('submit(formDemo)', function(data){
	  var index=parent.layer.getFrameIndex(window.name);
	  parent.layer.close(index);
  });
   
 
 
 
 
  form.on('submit(formEdit)', function(){
	 
		  var url="../../listenRawstockType/addOrUpdate.action";
		  var data={"rtName":$("#rtName").val(),"rtId":$("#rtId").val()};
		  $.post(url,data,function(mes){
			  if(mes>0){
				  if(mes>0){
					  window.parent.location.reload()
					  var index=parent.layer.getFrameIndex(window.name);
					  parent.layer.close(index);
				  }
			  }
		  },"json")
	 
	  
  })
  
  
});
layui.use('upload', function(){
	  var $ = layui.jquery
	  ,upload = layui.upload;
	  
	  
	
});
function load(){
	var form = layui.form;
	form.render();
}